//Propósito del test:	-corroborar la correctiud en la vinculación dinámica de código

class A
{
	dynamic int m1()
	{
		return 1;
	}
	
	static void main()
	{
		varlocal A inst_a;
		varlocal int i;
		inst_a = new B();
		(System.printSln("inst_a = new B():"));
		i = inst_a.m1();
		(System.printS("inst_a.m1() = "));
		(System.printIln(i));
		inst_a = new C();
		(System.printSln("inst_a = new C():"));
		i = inst_a.m1();
		(System.printS("inst_a.m1() = "));
		(System.printIln(i));
	}
}

class B extends A
{
	dynamic int m2()
	{
		return m1();
	}
}

class C extends B
{
	dynamic int m1()
	{
		return 25;
	}
}